package edu.gyc.hishiro.dao;

import edu.gyc.hishiro.model.SysPermission;
import edu.gyc.hishiro.model.SysRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.gyc.hishiro.vo.RoleUser;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ls
 * @since 2021-01-04
 */
@Component
public interface SysRoleDao extends BaseMapper<SysRole> {
    Set<SysRole> findRolesByUserId(Integer id);

    List<RoleUser> getRoleUsers();

    List<SysPermission> findPermissionByRoleId(Integer roleId);
}
